﻿namespace Digitalmes.Domain.Entities.Mes;

/// <summary>
/// 设备表
/// </summary>
[SugarTable("equip_machinery")]
public sealed class EquipMachinery : AuditedEntity
{
    /// <summary>
    /// 设备编号
    /// </summary>
    [NotNull]
    public string? Code { get; set; }

    /// <summary>
    /// 设备名称
    /// </summary>
    [NotNull]
    public string? Name { get; set; }

    /// <summary>
    /// 品牌
    /// </summary>
    public string? Brand { get; set; }

    /// <summary>
    /// 规格型号
    /// </summary>
    public string? Spec { get; set; }

    /// <summary>
    /// 设备类型ID
    /// </summary>
    public long CatalogId { get; set; }

    /// <summary>
    /// 所属车间ID
    /// </summary>
    public long WorkshopId { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }

    /// <summary>
    /// 设备状态（如停机等）
    /// </summary>
    public int Status { get; set; }
}
